import user from '@/cache/user.js'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/style.less'
import './assets/font/iconfont.css'
import 'font-awesome/css/font-awesome.min.css'

import wImage from "@/components/image/image"
Vue.component('wImage', wImage)
import mobileTrue from "@/components/judge/mobileTrue.vue"
Vue.component('mobileTrue', mobileTrue)
import mobileFalse from "@/components/judge/mobileFalse.vue"
Vue.component('mobileFalse', mobileFalse)
import noContent from "@/components/alert/no_content"
Vue.component('noContent', noContent)
//vue视频播放器
/* import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer) */

Vue.use(user)

require('./Mock')
import {
	parseTime
} from './utils'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 导入 vue-resource，并使用
import VueResource from 'vue-resource'


// 导入消息总线
import VueBus from 'vue-bus'
Vue.use(VueBus)

Vue.use(ElementUI)
Vue.use(VueResource)

Vue.config.productionTip = false
Vue.filter('parseTime', (v) => parseTime(v, '{y}-{m}-{d}'))
new Vue({
	router,
	store,
	render: h => h(App),
}).$mount('#app')
